{
 "cells": [
  {
   "cell_type": "markdown",
   "source": "## Initialization Notebook\nThis is your initialization notebook.\n\n**What's this for?**\n\nYou can put custom code you want us to run every time we setup your environment in here. \n\n**Awesome! Anything I should not put in here?**\n\nPlease don't install `jupyter` or `jedi` packages, they would break your Deepnote environment. Also, no need to put `!pip install`s here, we already save those automatically!\n\n**I want to learn more!**\n\nGreat! Just [head over to our docs](https://docs.deepnote.com/environment/custom-initialization).",
   "metadata": {
    "tags": [],
    "cell_id": "6ce0ef6f-2fcc-4295-aff5-e17464b72f09",
    "deepnote_cell_type": "markdown",
    "deepnote_cell_height": 349.15625
   }
  },
  {
   "cell_type": "code",
   "metadata": {
    "tags": [],
    "cell_id": "00001-72b133b4-86a5-44c2-9658-5b708a21c592",
    "deepnote_to_be_reexecuted": false,
    "source_hash": "60b37886",
    "execution_start": 1650378855392,
    "execution_millis": 20617,
    "deepnote_cell_type": "code",
    "deepnote_cell_height": 237.859375
   },
   "source": "%%bash\n# If your project has a 'requirements.txt' file, we'll install it here apart from blacklisted packages that interfere with Deepnote (see above).\nif test -f requirements.txt\n  then\n    sed -i '/jedi/d;/jupyter/d;' ./requirements.txt\n    pip install -r ./requirements.txt\n  else echo \"There's no requirements.txt, so nothing to install. This is the case with most projects.\"\nfi",
   "execution_count": 1,
   "outputs": [
    {
     "name": "stdout",
     "text": "Collecting openpyxl\n  Downloading openpyxl-3.0.9-py2.py3-none-any.whl (242 kB)\nCollecting transformers\n  Downloading transformers-4.18.0-py3-none-any.whl (4.0 MB)\nCollecting et-xmlfile\n  Downloading et_xmlfile-1.1.0-py3-none-any.whl (4.7 kB)\nRequirement already satisfied: filelock in /shared-libs/python3.9/py/lib/python3.9/site-packages (from transformers->-r ./requirements.txt (line 2)) (3.6.0)\nRequirement already satisfied: requests in /shared-libs/python3.9/py/lib/python3.9/site-packages (from transformers->-r ./requirements.txt (line 2)) (2.27.1)\nCollecting huggingface-hub<1.0,>=0.1.0\n  Downloading huggingface_hub-0.5.1-py3-none-any.whl (77 kB)\nCollecting sacremoses\n  Downloading sacremoses-0.0.49-py3-none-any.whl (895 kB)\nRequirement already satisfied: pyyaml>=5.1 in /shared-libs/python3.9/py/lib/python3.9/site-packages (from transformers->-r ./requirements.txt (line 2)) (6.0)\nRequirement already satisfied: packaging>=20.0 in /shared-libs/python3.9/py-core/lib/python3.9/site-packages (from transformers->-r ./requirements.txt (line 2)) (21.3)\nRequirement already satisfied: numpy>=1.17 in /shared-libs/python3.9/py/lib/python3.9/site-packages (from transformers->-r ./requirements.txt (line 2)) (1.22.3)\nCollecting tokenizers!=0.11.3,<0.13,>=0.11.1\n  Downloading tokenizers-0.12.1-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (6.6 MB)\nRequirement already satisfied: regex!=2019.12.17 in /shared-libs/python3.9/py/lib/python3.9/site-packages (from transformers->-r ./requirements.txt (line 2)) (2022.3.15)\nRequirement already satisfied: tqdm>=4.27 in /shared-libs/python3.9/py/lib/python3.9/site-packages (from transformers->-r ./requirements.txt (line 2)) (4.63.0)\nRequirement already satisfied: typing-extensions>=3.7.4.3 in /shared-libs/python3.9/py/lib/python3.9/site-packages (from huggingface-hub<1.0,>=0.1.0->transformers->-r ./requirements.txt (line 2)) (4.1.1)\nRequirement already satisfied: pyparsing!=3.0.5,>=2.0.2 in /shared-libs/python3.9/py-core/lib/python3.9/site-packages (from packaging>=20.0->transformers->-r ./requirements.txt (line 2)) (3.0.7)\nRequirement already satisfied: idna<4,>=2.5 in /shared-libs/python3.9/py-core/lib/python3.9/site-packages (from requests->transformers->-r ./requirements.txt (line 2)) (3.3)\nRequirement already satisfied: certifi>=2017.4.17 in /shared-libs/python3.9/py/lib/python3.9/site-packages (from requests->transformers->-r ./requirements.txt (line 2)) (2021.10.8)\nRequirement already satisfied: urllib3<1.27,>=1.21.1 in /shared-libs/python3.9/py/lib/python3.9/site-packages (from requests->transformers->-r ./requirements.txt (line 2)) (1.26.9)\nRequirement already satisfied: charset-normalizer~=2.0.0 in /shared-libs/python3.9/py-core/lib/python3.9/site-packages (from requests->transformers->-r ./requirements.txt (line 2)) (2.0.12)\nRequirement already satisfied: joblib in /shared-libs/python3.9/py/lib/python3.9/site-packages (from sacremoses->transformers->-r ./requirements.txt (line 2)) (1.1.0)\nRequirement already satisfied: click in /shared-libs/python3.9/py/lib/python3.9/site-packages (from sacremoses->transformers->-r ./requirements.txt (line 2)) (8.0.4)\nRequirement already satisfied: six in /shared-libs/python3.9/py-core/lib/python3.9/site-packages (from sacremoses->transformers->-r ./requirements.txt (line 2)) (1.16.0)\nInstalling collected packages: tokenizers, sacremoses, huggingface-hub, et-xmlfile, transformers, openpyxl\nSuccessfully installed et-xmlfile-1.1.0 huggingface-hub-0.5.1 openpyxl-3.0.9 sacremoses-0.0.49 tokenizers-0.12.1 transformers-4.18.0\nWARNING: You are using pip version 21.2.3; however, version 22.0.4 is available.\nYou should consider upgrading via the '/root/venv/bin/python -m pip install --upgrade pip' command.\n",
     "output_type": "stream"
    }
   ]
  },
  {
   "cell_type": "markdown",
   "source": "<a style='text-decoration:none;line-height:16px;display:flex;color:#5B5B62;padding:10px;justify-content:end;' href='https://deepnote.com?utm_source=created-in-deepnote-cell&projectId=6c9dc6e2-4972-475f-ae75-c9ca300dc4bf' target=\"_blank\">\n<img alt='Created in deepnote.com' style='display:inline;max-height:16px;margin:0px;margin-right:7.5px;' src='' > </img>\nCreated in <span style='font-weight:600;margin-left:4px;'>Deepnote</span></a>",
   "metadata": {
    "tags": [],
    "created_in_deepnote_cell": true,
    "deepnote_cell_type": "markdown"
   }
  }
 ],
 "nbformat": 4,
 "nbformat_minor": 2,
 "metadata": {
  "orig_nbformat": 2,
  "deepnote": {
   "is_reactive": false
  },
  "deepnote_notebook_id": "d6255d9b-bb40-44f7-bc1a-98f164a82ca1",
  "deepnote_execution_queue": []
 }
}